import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'userStatusPipe'
})
export class UserStatusPipePipe implements PipeTransform {

  transform(value: string, args?: any): string {
    switch (value) {
      case 'ACTIVE': return '激活';
      case 'DISABLE': return '禁用';
      default:
        return '未知';
    }
  }

}
